package com.gdut.huayan.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 预支付id
     */
    private String prepayId;

    /**
     * 订单号
     */
    private String orderNumber;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 用户openID
     */
    private String openId;

    /**
     * 完成时间
     */
    private LocalDateTime successTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 支付状态，1-待支付，2-已支付，3-正在退款 4-已退款
     */
    private Integer status;

    /**
     * 单位为分
     */
    private Integer moneyAmount;

    /**
     * 订单备注
     */
    private String remark;

    /**
     * 1-普通订单 2-随喜订单
     */
    private Integer charityType;


}
